package com.ybwh.springboot2.sharding5.dao;


import com.gitee.fastmybatis.core.mapper.CrudMapper;
import com.github.pagehelper.Page;
import com.ybwh.springboot2.sharding5.model.po.Dict;
import org.apache.ibatis.annotations.Param;

/**
* 字典表DAO
*
* @author Fan Beibei
* @date 2023-04-12 17:08:20
*/
public interface DictMapper extends CrudMapper<Dict/*实体类*/, Long/*主键类型*/> {

    /**
    * 分页查询
    *
    * @param param    查询参数
    * @param pageNum  页号
    * @param pageSize 页大小
    * @return
    */
    Page<Dict> selectByPage(
        @Param("param") Dict param,
        @Param("pageNum") int pageNum,
        @Param("pageSize") int pageSize);

    Dict selectJoinOrder(@Param("userId")Long userId, @Param("orderId")Long orderId);
}